home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / oji / nsIJVMAuthTools.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  221 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJVMAuthTools.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJVMAuthTools_h__
  6. #define __gen_nsIJVMAuthTools_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #define NS_JVMAUTHTOOLS_CID                          \
  18. { /* d8e716f9-c96e-4e84-ab12-980f5567e2a4 */         \
  19.     0xd8e716f9,                                      \
  20.     0xc96e,                                          \
  21.     0x4e84,                                          \
  22.     {0xab, 0x12, 0x98, 0x0f, 0x55, 0x67, 0xe2, 0xa4} \
  23. }
  24.  
  25. /* starting interface:    nsIAuthenticationInfo */
  26. #define NS_IAUTHENTICATIONINFO_IID_STR "078a1b99-6be2-4a57-a749-378f4a506097"
  27.  
  28. #define NS_IAUTHENTICATIONINFO_IID \
  29.   {0x078a1b99, 0x6be2, 0x4a57, \
  30.     { 0xa7, 0x49, 0x37, 0x8f, 0x4a, 0x50, 0x60, 0x97 }}
  31.  
  32. class NS_NO_VTABLE nsIAuthenticationInfo : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTHENTICATIONINFO_IID)
  36.  
  37.   /** 
  38.     * AuthenticationInfo (username/password pair)
  39.     */
  40.   /* readonly attribute const_char_ptr username; */
  41.   NS_IMETHOD GetUsername(const char * *aUsername) = 0;
  42.  
  43.   /* readonly attribute const_char_ptr password; */
  44.   NS_IMETHOD GetPassword(const char * *aPassword) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIAUTHENTICATIONINFO \
  50.   NS_IMETHOD GetUsername(const char * *aUsername); \
  51.   NS_IMETHOD GetPassword(const char * *aPassword); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIAUTHENTICATIONINFO(_to) \
  55.   NS_IMETHOD GetUsername(const char * *aUsername) { return _to GetUsername(aUsername); } \
  56.   NS_IMETHOD GetPassword(const char * *aPassword) { return _to GetPassword(aPassword); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIAUTHENTICATIONINFO(_to) \
  60.   NS_IMETHOD GetUsername(const char * *aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
  61.   NS_IMETHOD GetPassword(const char * *aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsAuthenticationInfo : public nsIAuthenticationInfo
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIAUTHENTICATIONINFO
  72.  
  73.   nsAuthenticationInfo();
  74.  
  75. private:
  76.   ~nsAuthenticationInfo();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsAuthenticationInfo, nsIAuthenticationInfo)
  84.  
  85. nsAuthenticationInfo::nsAuthenticationInfo()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsAuthenticationInfo::~nsAuthenticationInfo()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* readonly attribute const_char_ptr username; */
  96. NS_IMETHODIMP nsAuthenticationInfo::GetUsername(const char * *aUsername)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* readonly attribute const_char_ptr password; */
  102. NS_IMETHODIMP nsAuthenticationInfo::GetPassword(const char * *aPassword)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. /* starting interface:    nsIJVMAuthTools */
  112. #define NS_IJVMAUTHTOOLS_IID_STR "82274a32-a196-42ee-8e3b-fcb73e339518"
  113.  
  114. #define NS_IJVMAUTHTOOLS_IID \
  115.   {0x82274a32, 0xa196, 0x42ee, \
  116.     { 0x8e, 0x3b, 0xfc, 0xb7, 0x3e, 0x33, 0x95, 0x18 }}
  117.  
  118. class NS_NO_VTABLE nsIJVMAuthTools : public nsISupports {
  119.  public: 
  120.  
  121.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJVMAUTHTOOLS_IID)
  122.  
  123.   /**
  124.      * Export AuthenticationInfo interface to JPI.
  125.      *
  126.      * @param protocol               the protocol that support (http/https)
  127.      * @param host                   host name
  128.      * @param port                   port number
  129.      * @param scheme                 scheme
  130.      * @param realm                  realm
  131.      * @param nsIAuthenticationInfo  the AuthenticationInfo interface
  132.      *                               that export
  133.      *
  134.      * @return                   NS_OK if success, other if fail
  135.      */
  136.   /* nsIAuthenticationInfo GetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm); */
  137.   NS_IMETHOD GetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, nsIAuthenticationInfo **_retval) = 0;
  138.  
  139.   /**
  140.      * Import username/password pair from JPI.
  141.      *
  142.      * @param protocol  the protocol that support (http/https)
  143.      * @param host      host name
  144.      * @param port      port number
  145.      * @param scheme    scheme
  146.      * @param realm     realm
  147.      * @param username  user name
  148.      * @param password  password
  149.      *
  150.      * @return          NS_OK if success, other if fail
  151.      */
  152.   /* void SetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm, in string username, in string password); */
  153.   NS_IMETHOD SetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, const char *username, const char *password) = 0;
  154.  
  155. };
  156.  
  157. /* Use this macro when declaring classes that implement this interface. */
  158. #define NS_DECL_NSIJVMAUTHTOOLS \
  159.   NS_IMETHOD GetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, nsIAuthenticationInfo **_retval); \
  160.   NS_IMETHOD SetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, const char *username, const char *password); 
  161.  
  162. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  163. #define NS_FORWARD_NSIJVMAUTHTOOLS(_to) \
  164.   NS_IMETHOD GetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, nsIAuthenticationInfo **_retval) { return _to GetAuthenticationInfo(protocol, host, port, scheme, realm, _retval); } \
  165.   NS_IMETHOD SetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, const char *username, const char *password) { return _to SetAuthenticationInfo(protocol, host, port, scheme, realm, username, password); } 
  166.  
  167. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  168. #define NS_FORWARD_SAFE_NSIJVMAUTHTOOLS(_to) \
  169.   NS_IMETHOD GetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, nsIAuthenticationInfo **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthenticationInfo(protocol, host, port, scheme, realm, _retval); } \
  170.   NS_IMETHOD SetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, const char *username, const char *password) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAuthenticationInfo(protocol, host, port, scheme, realm, username, password); } 
  171.  
  172. #if 0
  173. /* Use the code below as a template for the implementation class for this interface. */
  174.  
  175. /* Header file */
  176. class nsJVMAuthTools : public nsIJVMAuthTools
  177. {
  178. public:
  179.   NS_DECL_ISUPPORTS
  180.   NS_DECL_NSIJVMAUTHTOOLS
  181.  
  182.   nsJVMAuthTools();
  183.  
  184. private:
  185.   ~nsJVMAuthTools();
  186.  
  187. protected:
  188.   /* additional members */
  189. };
  190.  
  191. /* Implementation file */
  192. NS_IMPL_ISUPPORTS1(nsJVMAuthTools, nsIJVMAuthTools)
  193.  
  194. nsJVMAuthTools::nsJVMAuthTools()
  195. {
  196.   /* member initializers and constructor code */
  197. }
  198.  
  199. nsJVMAuthTools::~nsJVMAuthTools()
  200. {
  201.   /* destructor code */
  202. }
  203.  
  204. /* nsIAuthenticationInfo GetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm); */
  205. NS_IMETHODIMP nsJVMAuthTools::GetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, nsIAuthenticationInfo **_retval)
  206. {
  207.     return NS_ERROR_NOT_IMPLEMENTED;
  208. }
  209.  
  210. /* void SetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm, in string username, in string password); */
  211. NS_IMETHODIMP nsJVMAuthTools::SetAuthenticationInfo(const char *protocol, const char *host, PRInt32 port, const char *scheme, const char *realm, const char *username, const char *password)
  212. {
  213.     return NS_ERROR_NOT_IMPLEMENTED;
  214. }
  215.  
  216. /* End of implementation class template. */
  217. #endif
  218.  
  219.  
  220. #endif /* __gen_nsIJVMAuthTools_h__ */
  221.